package com.web.pojo.dto;

import java.io.Serializable;

/**设置上报周期
 * @Author: wws
 * describe:
 */

public class SetSwitchReportingPeriodDTO  implements Serializable {
    private Integer id;
    private byte reportHour;//上报周期小时
    private byte reportMinute;//上报周期分钟

    public SetSwitchReportingPeriodDTO() {
    }

    public SetSwitchReportingPeriodDTO(Integer id,byte[] data) {
        this.id = id;
        this.reportHour = data[5];
        this.reportMinute = data[6];
    }

    public SetSwitchReportingPeriodDTO(Integer id, byte reportHour, byte reportMinute) {
        this.id = id;
        this.reportHour = reportHour;
        this.reportMinute = reportMinute;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public byte getReportHour() {
        return reportHour;
    }

    public void setReportHour(byte reportHour) {
        this.reportHour = reportHour;
    }

    public byte getReportMinute() {
        return reportMinute;
    }

    public void setReportMinute(byte reportMinute) {
        this.reportMinute = reportMinute;
    }

    @Override
    public String toString() {
        return "SetSwitchReportingPeriodDTO{" +
                "id=" + id +
                ", reportHour=" + reportHour +
                ", reportMinute=" + reportMinute +
                '}';
    }
}
